package com.zhongkeruan.user.hystrix.impl;
import com.zhongkeruan.common.constants.StatusCode;
import com.zhongkeruan.common.model.Order;
import com.zhongkeruan.common.vo.Result;
import com.zhongkeruan.user.hystrix.OrderHystrix;
import org.springframework.stereotype.Component;

/**
 * @author yangyao
 * @Description: OrderHystrixImpl
 * @date 2019/1/12 11:59
 */
@Component
public class OrderHystrixImpl implements OrderHystrix {

    public Result getOrderListByUserId(Long userId) {
        return new Result(StatusCode.TIMEOUT,"请求超时",null);
    }

    public Result addOrder(Order order) {
        return new Result(StatusCode.TIMEOUT,"插入失败");
    }
}
